<template>
  <div class="app-footer">
    <div class="app-footer-top-wrapper">

      <div class="app-footer-top">
        <div class="app-footer-top__logo"></div>
        <p class="app-footer-top__intro">
          “BALLBET贝博体育”一直在不懈地追求技术创新。 通过个性化的用户体验，技术领先的尖端产品，周到细致的 <br>
          客户服务质量，完善的技术支持，完整数据分析支持，我们为用户创建了一个全面的互动平台，在各方面都建立了良好的声 <br>
          誉。 它得到了业界和用户的一致认可。
        </p>
      </div>
      <div class="app-footer-middle">
        <div class="app-footer-middle__cell">
          <div class="app-footer-middle__icon-wrapper">
            <div class="app-footer-middle__icon-title">
              合作平台商
            </div>
            <div class="app-footer-middle__icons app-footer-middle__icons--partner"></div>
          </div>
          <div class="app-footer-middle__icon-wrapper">
            <div class="app-footer-middle__qrcode">
              <qriously class="app-footer-middle__qrcode-pic" :value='downloadUrl' :size="64"></qriously>
            </div>
            <div class="app-footer-middle__qrcode-title">代理后台APP</div>
            <div class="app-footer-middle__qrcode-intro">扫描下载代理后台APP随时随刻关注数据详情</div>
          </div>
        </div>
      </div>
    </div>

    <div class="app-footer-bottom-wrapper">
      <div class="app-footer-bottom">
        <div class="app-footer-bottom__copyright">
          Copyright © 2018 Ballbet Group All
        </div>
        <div class="app-footer-bottom__nav">
          <router-link :to="{path: '/about-us/about-us'}" class="app-footer-bottom__tab">
            关于我们
          </router-link>
          <!--<router-link :to="{path: '/about-us/statement'}" class="app-footer-bottom__tab">-->
            <!--合作协议-->
          <!--</router-link>-->
          <router-link :to="{path: '/about-us/commission'}" class="app-footer-bottom__tab">
            佣金方案
          </router-link>
          <!--<router-link :to="{path: '/about-us/question'}" class="app-footer-bottom__tab">-->
            <!--常见问题-->
          <!--</router-link>-->
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "app-footer",

    data() {
      return {
        downloadUrl: _.proxyDownloadUrl(),
      };
    }
  };
</script>

<style lang="scss" scoped>
  $--top-height: 375px !default;
  $--bottom-height: 72px !default;

  @include b(app-footer) {
  }

  @include b(app-footer-top-wrapper) {
    @include utils-bg(url(./misc/bg.png) #666666);
    height: $--top-height;
  }
  @include b(app-footer-top) {
    @include main-center(1200px);
    color: $--color-white;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255, .1);
    padding: 75px 0 32px;
    margin-bottom: 38px;

    @include e(logo) {
      @include utils-bg(url(~assets/logo-white.png) no-repeat);
      width: 190px;
      height: 27px;
    }

    @include e(intro) {
      font-size: $--font-size-large;
      color: $--color-white-8;
      line-height:32px;
      text-align: center;
    }

  }

  @include b(app-footer-middle) {
    @include main-center(1200px);
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;

    @include e(cell) {
      display: flex;
      margin-bottom: 50px;
    }

    @include e(icon-wrapper) {
      margin-right: 100px;
      flex: 1 0 0;

      &:last-of-type {
        margin-right: 0;
      }
    }
    @include e(icon-title) {
      font-weight: bold;
      color: $--color-white;
      margin-bottom: 20px;
    }

    @include e(qrcode) {
      width: 76px;
      height: 76px;
      border-radius: $--border-radius-base;
      margin-right: 12px;
      float: left;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: $--color-white;
    }
    @include e(qrcode-pic) {
      /deep/ canvas {
        width: 64px;
        height: 64px;
      }
    }
    @include e(qrcode-title) {
      padding-top: 28px;
      font-weight: bold;
      color: $--color-white;
      margin-bottom: 10px;
    }
    @include e(qrcode-intro) {
      color: $--color-white;
    }

    @include e(icons) {
      @include m(license) {
        @include utils-bg(url(./misc/license.png));
        width: 58px;
        height: 21px;
      }
      @include m(partner) {
        @include utils-bg(url(./misc/partner.png));
        width: 384px;
        height: 23px;
      }
      @include m(zeren) {
        @include utils-bg(url(./misc/zeren.png));
        width: 260px;
        height: 22px;
      }
    }
  }


  @include b(app-footer-bottom-wrapper) {
    background-color: #24282d;
  }
  @include b(app-footer-bottom) {
    @include main-center(1200px);
    color: $--color-white;
    display: flex;
    height: $--bottom-height;
    line-height: $--bottom-height;

    @include e(copyright) {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.5);
      flex: 1 0 0;
    }
    @include e(nav) {

    }
    @include e(tab) {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.4);
      margin: 0 20px;
    }
  }
</style>